package com.gujia.designpattern.strategy;

public class DuckTest {

    public static void main(String[] args) {
        Duck duck = new RedheadDuck();

        duck.display();
        duck.quack();
        duck.fly();

        duck = new MallardDuck();

        duck.display();
        duck.quack();
        duck.fly();

    }
}
